<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>SMS</title>
<meta http-equiv="Content-Language" content="English" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="css/style.css" media="screen" />
<link rel="stylesheet" href="css/estilo.css"	type="text/css" />
<script type="text/javascript" src="scripts/wysiwyg.js"></script>
<script type="text/javascript" src="scripts/wysiwyg-settings.js"></script>
<script type="text/javascript" src="scripts/funcoes.js"></script>
</head>
<body>
<div id="wrap">

	<div id="header">
		<jsp:include page="../texto_superior.jsp"/>
	</div>

	<div id="menu">
		<jsp:include page="../menu_superior.jsp"/>
	</div>
	
	<div id="content">
		<div class="right"> 
			<h4>
				<s:if test="mensagem.id > 0">
					Alterando Mensagem
				</s:if>
				<s:else>
					Cadastrando Mensagem
				</s:else>
			</h4>
			<br>
		<div class="articles">
				<s:fielderror theme="simple" cssClass="errorMessage"  cssErrorStyle="errorMessage" cssErrorClass="errorMessage"/>
				<s:actionmessage theme="simple" cssClass="sucessMessage" cssErrorStyle="sucessMessage" cssErrorClass="sucessMessage"/>			
				<script type="text/javascript">
					// Use it to attach the editor to all textareas with full featured setup
					//WYSIWYG.attach('all', full);
					
					// Use it to attach the editor directly to a defined textarea
					WYSIWYG.attach('textarea1'); // default setup
					//WYSIWYG.attach('textarea1', full); // full featured setup
					//WYSIWYG.attach('textarea1', small); // small setup
					
					// Use it to display an iframes instead of a textareas
					//WYSIWYG.display('all', full);  
				</script>
				<s:form action="mensagem!salvarMensagem.action">
					<s:hidden name="mensagem.id" value="%{mensagem.id}"/>
					<s:hidden name="tituloPesquisa" value="%{tituloPesquisa}"/>
					<s:hidden name="menuAtual" value="%{menuAtual}"/>

					<table class="tabela_moldura">
						<tr>
							<td>Titulo:</td>
							<td><s:textfield name="mensagem.tituloMensagem" theme="simple" size="40" maxlength="500"/></td>
						</tr>
						<tr>
							<td>Mensagem:</td>
						</tr>
						<tr>
							<td>
								<s:textarea id="textarea1" name="test1" cssStyle="width:560px;height:200px;" name="mensagem.descricaoMenssagem">
								</s:textarea>
							</td>
						</tr>
						<tr>
							<td><s:submit value="Salvar" theme="simple"/></td>
							<s:if test="mensagem.id > 0">
								<td><input type="button" value="Voltar" onclick="voltar();"/></td>
							</s:if>
							<s:elseif test=""></s:elseif>
						</tr>
					</table>
				</s:form>
		</div>	
	</div>
	</div>
	<div class="left"> 
		<jsp:include page="../administracao/menu_lateral.jsp"/>
	</div>
</div>
<div id="footer">
Sistema para SMS.., Acess <a href="#">website design</a>
</div>
